package grp.test.service;

import grp.test.common.ServerResponse;
import grp.test.pojo.User;

public interface IUserService {

    ServerResponse<User> login(String userName, String userPassword);

    ServerResponse<String> register(User user);

    ServerResponse<String> checkValid(String str, String type);

    ServerResponse<String> forgetResetPassword(String userName, String passwordNew, String forgetToken);

    ServerResponse<String> resetPassword(String passwordOld, String passwordNew, User user);

    ServerResponse<User> updateInformation(User user);

    ServerResponse<User> getInformation(Integer userId);

    ServerResponse checkAdminRole(User user);
}
